package com.mindainfo.groundwave.server.base.component;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * Created by MD-01 on 2017/5/3.
 */
@Component
public class Starting implements InitializingBean{

    private Logger logger = LoggerFactory.getLogger("starting");

    @Override
    public void afterPropertiesSet() throws Exception {
        /**
         * 这里可以指定一些项目启动后初始化的操作.
         * 运行到这里项目已经启动.spring的bean加载完成
         * 这里可以注入其他的bean
         */
        logger.info("项目启动成功...");
    }
}
